package com.cqwu.util;

import javax.interceptor.Interceptors;

import org.apache.struts2.convention.annotation.InterceptorRef;

import com.cqwu.action.TestAction;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

/**
 * @author LK
 * @time  2015-12-6 下午3:20:58
 * 自定义拦截器
 */
public class ZoneInteceptor extends AbstractInterceptor{

	@Override
	public String intercept(ActionInvocation invocation) throws Exception {
		System.out.println("拦截前....");
		String stValue = invocation.invoke();
		System.out.println("拦截后....");
		return stValue;
	}

}
